package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("护理任务取消DTO")
@AllArgsConstructor
@NoArgsConstructor
public class NursingTaskCancelDto {

    @NotNull(message = "取消原因不能为空")
    @ApiModelProperty(value = "取消原因", required = true, example = "老人身体不适")
    @JsonProperty("reason")
    private String reason;

    @NotNull(message = "护理任务ID不能为空")
    @ApiModelProperty(value = "护理任务ID", required = true, example = "123")
    @JsonProperty("taskId")
    private Integer taskId;
} 